*Figure 2
*Use "MasterCYComplianceData_Fig2_3.dta"
*1. CEDAW (Upper Left Panel)
**by year: egen cedawcompsum = sum(cedaw_compliance1)
**by year: egen cedawexecsum = sum(cedaw_execution1)
**by year: egen cedawdelsum = sum(cedaw_delegation1)
**by year: egen cedawconssum = sum(cedaw_consideration1)
**by year: egen cedawinactionsum = sum(cedaw_inaction1)
**by year: egen cedawnomentionsum = sum(cedaw_nomention1)

twoway (line cedawcompsum year) (line cedawexecsum year) (line cedawdelsum year) (line cedawconssum year) (line cedawinactionsum year) (line cedawnomentionsum year)

*2. UPR (Upper Right Panel)
**by year: egen uprcompsum = sum(upr_compliance1)
**by year: egen uprexecsum = sum(upr_execution1)
**by year: egen uprdelsum = sum(upr_delegation1)
**by year: egen uprconssum = sum(upr_consideration1)
**by year: egen uprinactionsum = sum(upr_inaction1)
**by year: egen uprnomentionsum = sum(upr_nomention1)

twoway (line uprcompsum year) (line uprexecsum year) (line uprdelsum year) (line uprconssum year) (line uprinactionsum year) (line uprnomentionsum year)

*3. ECtHR (Lower Left Panel)
**by year: egen ectcompsum = sum(ect_compliance1)
**by year: egen ectexecsum = sum(ect_execution1)
**by year: egen ectdelsum = sum(ect_delegation1)
**by year: egen ectconssum = sum(ect_consideration1)
**by year: egen ectinactionsum = sum(ect_inaction1)
**by year: egen ectnomentionsum = sum(ect_nomention1)

twoway (line ectcompsum year) (line ectexecsum year) (line ectdelsum year) (line ectinactionsum year) (line ectnomentionsum year)


*4. All institutions (Lower Right Panel)
**by year: egen allinstcompsum = sum(allinst_compliance1)
**by year: egen allinstexecsum = sum(allinst_execution1)
**by year: egen allinstdelsum = sum(allinst_delegation1)
**by year: egen allinstconssum = sum(allinst_consideration1)
**by year: egen allinstinactionsum = sum(allinst_inaction1)
**by year: egen allinstnomentionsum = sum(allinst_nomention1)

twoway (line allinstcompsum year) (line allinstexecsum year) (line allinstdelsum year) (line allinstconssum year) (line allinstinactionsum year) (line allinstnomentionsum year)